package org.huntaway.spring2.imp;

import org.huntaway.spring2.BeanFactory;
import org.springframework.context.ApplicationContext;

/**
 * @author Administrator
 * 
 */
public class BeanFactoryImp implements BeanFactory {
	private static ApplicationContext context;

	/**
	 * @param inContext
	 */
	public BeanFactoryImp(ApplicationContext inContext) {
		context = inContext;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.huntaway.spring.BeanFactory#getBean(java.lang.String)
	 */
	public Object getBean(String name) {
		return context.getBean("helloBean");
	}
}
